'''
Created on Jul 21, 2009

@author: xin
@author: Mikael Rousson
'''
import pyr_band_indice

def pyr_band(pyr, pind, band):
    indices = pyr_band_indice.pyr_band_indice(pind, band)
    res = pyr[indices]
    res.shape = pind[band - 1, 0], pind[band - 1, 1] 
    return res
